package com.kaifamiao.www.ioDemo.do0922;

import java.io.FileWriter;
import java.io.IOException;

public class WriteDemo {
    public static void main(String[] args) {

        String path = "E:\\kaifamiao\\workspace\\idea--space\\io\\write.txt";
        try {
            FileWriter fw = new FileWriter(path);
            fw.write("aaaaaaa");
            //换行
            fw.write("\r\n");
            fw.write("bbbbbbbbb");
            fw.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
